package com.zhiche.lisa.lspm.dao.model.carrier;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车头与挂车绑定关系日志
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_carrier_trailer_bind_log")
public class CarrierTrailerBindLog extends Model<CarrierTrailerBindLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 牵引车ID
     */
	@TableField("carrier_id")
	private Long carrierId;
    /**
     * 挂车ID
     */
	@TableField("trailer_id")
	private Long trailerId;
    /**
     * 绑定时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 操作人
     */
	private Long creator;

	@TableField("tenant_id")
	private Long tenantId;
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public Long getTrailerId() {
		return trailerId;
	}

	public void setTrailerId(Long trailerId) {
		this.trailerId = trailerId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	public String toString() {
		return "CarrierTrailerBindLog{" +
			", id=" + id +
			", carrierId=" + carrierId +
			", trailerId=" + trailerId +
			", gmtCreate=" + gmtCreate +
			", creator=" + creator +
			"}";
	}
}
